M-Pesa Statement Analysis
This analyses the pdf and generates the report. The response is in a json format.
Header Requirements
- Authorization --required
Body Params
- file --required
- fullname --required
curl example request
curl -X 'POST' 'https://api.sat.tausi.africa/v2/vodacom/2d_analysis'
-F fullname=Hussein \
-F 'file=@M_Pesa_789981_Statement.pdf' \
-H 'Authorization: Bearer XXXXXXXXXXX' \'
Response Sample
- Status OK Response
200 OK
{
"cash_flow_analysis": {
"cash_inflow": {
"agent_deposits": {
"total_amount": 7500000,
"percentage_of_total": 30
},
"peer_to_peer": {
"total_amount": 6000000,
"percentage_of_total": 24
},
"bank_to_wallet": {
"total_amount": 4000000,
"percentage_of_total": 16
},
"loan_disbursements": {
"total_amount": 4500000,
"percentage_of_total": 18
},
"others": {
"total_amount": 2500000,
"percentage_of_total": 10
}
},
"total_cash_inflow": 24500000,
"cash_outflow": {
"agent_withdrawals": {
"total_amount": 5000000,
"percentage_of_total": 25
},
"peer_to_peer": {
"total_amount": 4000000,
"percentage_of_total": 20
},
"bill_payments": {
"total_amount": 3500000,
"percentage_of_total": 17.5
},
"loan_repayments": {
"total_amount": 3000000,
"percentage_of_total": 15
},
"others": {
"total_amount": 2500000,
"percentage_of_total": 12.5
}
},
"total_cash_outflow": 18000000
}
}